﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/default.master" AutoEventWireup="true" CodeFile="MyReviewList.aspx.cs" Inherits="Pages_Usercenter_MyReviewList" %>

<%@ Register src="../../Misc/Control/MyAccount.ascx" tagname="MyAccount" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>我的留言</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="main2"> 
 <div class="main_l">              
  <!--左侧部分 开始-->
		<div class="dingd_top">
			<ul>
				<li class="navon"><a href="MyOrderList.aspx"><span>我的订单</span></a></li>
				<li class="navon"><a href="MyEventList.aspx"><span>我的活动</span></a></li>
				<li class="navon"><a href="MyAddressList.aspx"><span>地址簿</span></a></li>
				<li><a href="MyReviewList.aspx"><span>我的留言</span></a></li>
			</ul>
		</div>
		<div class="l_area3">	
			<div class="blank25"></div>
			 <pan:SmartGridView ID="panGdvReviewList" runat="server" 
                AutoGenerateColumns="False" DataSourceID="odsReviewList" 
                AllowPaging="True" PageSize="10"  >
                <Columns>
                <asp:TemplateField>
                <ItemTemplate >
                <div class="index_three">
				<ul>
					<li class="index_three_h4"><b class="text5">我</b>　发表于  <%# Eval("CreateOn") %><span><a href='/pages/index.aspx?pid=<%#Eval("ProductID") %>'><%# Eval("ProductName") %></a></span></li>
					<li class="index_three_cont"><%# Eval("Body") %></li>
				</ul>
				<ul>
					<li class="index_three_bot"><%# string.IsNullOrEmpty(Eval("Reply").ToString())?"":Eval("Reply","管理员回复:{0}") %></li>
				</ul>							  </div>
				</ItemTemplate>
                
				</asp:TemplateField>
                
                </Columns>
                  <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <EmptyDataTemplate>
     
        </EmptyDataTemplate>
       
        <CustomPagerSettings PagingMode="Webabcd" TextFormat="每页{0}条/共{1}条  第{2}页/共{3}页   " />
        <PagerSettings Position="Bottom" PageButtonCount="13" FirstPageText="首页" PreviousPageText="上一页"
            NextPageText="下一页" LastPageText="末页" />
         <AlternatingRowStyle BackColor="#DCDCDC" />
         <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                </pan:SmartGridView>
			
			<asp:ObjectDataSource ID="odsReviewList" runat="server" 
                                  OldValuesParameterFormatString="original_{0}" 
                                  SelectMethod="GetModelListByEmail" 
                TypeName="Tuan.BLL.Review">
                                  <SelectParameters>
                                      <asp:ControlParameter ControlID="hdUserName" DefaultValue="" Name="email" 
                                          PropertyName="Value" Type="String" />
                                  </SelectParameters>
                              </asp:ObjectDataSource>
			   
			  			  <div class="blank25"></div>
			<!--翻页开始-->
			<div class="page">
			<div class="page-bottom">
              			</div>
		</div>	
		<!--翻页结束-->
		<div class="blank25"></div>
		</div>
		<div class="l_bot">
            
     </div>
	<!--左侧部分 结束--> </div> 
  	<uc1:MyAccount ID="MyAccount1" runat="server" />
	<DIV class="go-top"><A href="#uptop">↑顶部</A></DIV></div>
	<asp:HiddenField   ID="hdUserName" runat="server" />
	
</asp:Content>

